package HomeWork;

import java.util.Arrays;

public class Csdn {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6};
        int[] newArr;
        newArr = Arrays.copyOfRange(arr,2,arr.length);
        System.out.println(Arrays.toString(newArr));
    }
    public static void main1(String[] args) {
        int[] arr = {1,2,3,4,5,6};
        int[] newArr;
        newArr = Arrays.copyOf(arr,arr.length);
        System.out.println(Arrays.toString(newArr));
    }
}
